import type { LoginParams, UserDetail } from "@/types/user";
import { myGet, myPost } from "@/utils/reuqest";

// 登录
export const loginAPI = (data: LoginParams) => {
    return myPost<{ token: string }>('/park/login', data)
}

// 获取用户信息
export const getUserDetailAPI = () => {
    return myGet<UserDetail>('/park/user/profile')
}